if __name__ == '__main__':
    count = 0
    j = 0
    for n in range(2, 1000):
        for i in range(2, n):
            if n % i == 0:
                break
            if i == n - 1:
                print(n, end="\t")
                j+=1
                if j%10==0:
                    print("\n")
                count += n
                break

    print("这些素数的和为：" + str(count))
